package com.yanqu.road.entity.log.foxcard;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_foxcard_fast_pass", desc = "黑狐入侵快速通关", autoSave = true, dataUpload = true, eventName = "red_blackfast", uploadCk = true)
public class LogFoxCardFastPass extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "关卡id", dataAttribute = "red_blacklev")
    private int stageId;
    @FieldTypeAnnotation(desc = "通关前回合数", dataAttribute = "red_balckfastbefid")
    private int beforeRound;
    @FieldTypeAnnotation(desc = "通关后回合数", dataAttribute = "red_balckfastbaftid")
    private int afterRound;
    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "red_blackget")
    private String reward;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogFoxCardFastPass(int activityId, long userId, int stageId, int beforeRound, int afterRound, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.stageId = stageId;
        this.beforeRound = beforeRound;
        this.afterRound = afterRound;
        this.reward = reward;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
